﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SiteTwoColumn.Master" Inherits="System.Web.Mvc.ViewPage<Beeldbankmvc.Models.ReactionModel>" %>
<%@ Import Namespace="Beeldbankmvc.Helpers" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"><%=DynamicContent.getTitle(Request.Path) %></asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderMiddleColumn" runat="server">
    <h1><%=DynamicContent.getTitle(Request.Path) %></h1>
    <%=DynamicContent.getBodyText(Request.Path)%>

    <h2>Contactformulier</h2>
    <div id="register">
        <% using (Html.BeginForm())
           {%>
        <%: Html.ValidationSummary(true) %>
        <fieldset>
            <legend>Contactformulier</legend>
            <p>
                <%: Html.LabelFor(model => model.Email) %>
                <%: Html.TextBoxFor(model => model.Email)%>
                <%: Html.ValidationMessageFor(model => model.Email) %>
            </p>
            <p>
                <%: Html.LabelFor(model => model.Name) %>
                <%: Html.TextBoxFor(model => model.Name)%>
                <%: Html.ValidationMessageFor(model => model.Name) %>
            </p>
            <p>
                <%: Html.LabelFor(model => model.Telephone) %>
                <%: Html.TextBoxFor(model => model.Telephone)%>
                <%: Html.ValidationMessageFor(model => model.Telephone) %>
            </p>
            <p>
                <%: Html.LabelFor(model => model.Subject) %>
                <%: Html.DropDownList("Subject", new SelectList(ViewData["ReactionSubjectList"] as IEnumerable, "value", "Text", null))%>
                <%: Html.ValidationMessageFor(model => model.Subject) %>
            </p>
            <p>
                <%: Html.LabelFor(model => model.Category) %>
                <%: Html.DropDownList("Category", new SelectList(ViewData["ReactionCategoryList"] as IEnumerable, "value", "Text", null))%>
                <%: Html.ValidationMessageFor(model => model.Category) %>
            </p>
            <p>
                <%: Html.LabelFor(model => model.Message) %>
                <%: Html.TextAreaFor(model => model.Message, 10, 50, null)%>
                <%: Html.ValidationMessageFor(model => model.Message) %>
            </p>
        </fieldset>
        <p>
            <input class="button" type="submit" value="Verzenden" />
        </p>
        <% } %>
    </div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolderRightColumn" runat="server">
    <% Html.RenderAction("Index2", "FilmStrip", new { number = 5 }); %>
</asp:Content>
